<template>
  <div class="father">
    <Top @sonSend="fat"></Top>
    <List :fat="fatList"></List>
  </div>
</template>

<script>
//注册组件
import Top from "@/components/Top.vue";
import List from "@/components/List.vue";
export default {
  components: { Top, List },
  data() {
    return {
      fatList:[]
    };
  },
  methods: {
    fat(val) {
      // console.log(val);
      this.fatList=val;
      console.log(this.fatList)
    }
  },
};
</script>

<style lang="scss">
.father {
  width: 100%;
  height: 100%;
}
</style>